<template>
  <div class="personnel-main">
    <el-row type="flex" justify="space-between">
      <el-col :span="4" class="search-box">
        <el-input
          size="small"
          v-model="search"
          placeholder="搜索人员或工种"
          prefix-icon="el-icon-search"
          @blur="getPerson"
        />
      </el-col>
      <div>
        <el-button
          size="small"
          type="primary"
          icon="el-icon-circle-plus-outline"
          >新增工序工种</el-button
        >
        <el-button size="small">批量导入</el-button>
        <el-button size="small">批量编辑</el-button>
        <el-button size="small" type="danger" class="danger-btn"
          >批量删除</el-button
        >
      </div>
    </el-row>
    <div class="common-table" ref="table">
      <el-table :data="tableData" style="width: 100%">
        <el-table-column
          prop="devSn"
          label="工序工种"
          min-width="30%"
          align="center"
        />
        <el-table-column
          prop="devSn"
          label="人数"
          min-width="10%"
          align="center"
        />
        <el-table-column
          prop="devSn"
          label="名称"
          min-width="10%"
          align="center"
        />
        <el-table-column
          prop="devSn"
          label="负责人"
          min-width="10%"
          align="center"
        />
        <el-table-column
          prop="devSn"
          label="角色"
          min-width="10%"
          align="center"
        />
        <el-table-column width="120" align="center">
          <template slot-scope="{ row }">
            <el-button
              type="text"
              icon="el-icon-edit-outline"
              size="small"
              style="padding:0"
              >编辑</el-button
            >
            <el-button
              type="text"
              icon="el-icon-delete"
              class="danger"
              style="padding:0"
              size="small"
              >删除</el-button
            >
          </template>
        </el-table-column>
      </el-table>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      search: '',
      tableData: []
    };
  },
  mounted() {},
  methods: {
    getPerson() {}
  }
};
</script>

<style lang="scss" scoped>
.common-table {
  height: calc(100% - 65px);
}
</style>
